#!/bin/bash
#build kata kernel and install it
. /opt/hygon/common.sh

os_release=$(eval get_os_release)

if [ $os_release == "centos" ];then
	source /opt/rh/devtoolset-8/enable
fi

git clone https://gitee.com/anolis/hygon-cloud-kernel.git --depth=1
mv hygon-cloud-kernel kata-linux-5.10-96
./build-kernel.sh -v 5.10 -x csv -g dcu -d -f setup
./build-kernel.sh -v 5.10 -d build
DESTDIR=/opt PREFIX=kata ./build-kernel.sh -v 5.10 -d install
